package com.gimi.cloud.jimi.dao.dao.sys;

import com.gimi.cloud.jimi.dao.common.SqlProvider;
import com.gimi.cloud.jimi.dao.myMapper.MyMapper;
import com.gimi.cloud.jimi.entity.sys.SysMasterRoleEntity;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.Param;

/**
 * Created by shazhiwei on 2017/12/15.
 */
public interface SysMasterRoleDao extends MyMapper<SysMasterRoleEntity>{

    @Delete("DELETE FROM sys_master_role WHERE ma_id = #{maId};")
    Integer deleteByMaId(@Param(value = "maId") Integer maId);

    @InsertProvider(type = SqlProvider.class,method = "sql")
    Integer saveBatch(String sql);

}
